package com.example.dong.consumer.ctl;

import com.example.dong.clients.SomethingClient;
import com.example.dong.clients.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author dongzhihua
 * @Date 2021/8/28 21:18
 */
@RestController
@RequestMapping("consumer")
public class ConsumerCtl {
    @Resource
    SomethingClient somethingClient;

    @RequestMapping("detail")
    public Result<String> client(int id) {
        return somethingClient.detail(id);
    }
}
